﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Data.Entity;
using TriviaModel;

namespace TriviaTestProject1
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void EntityTest()
        {
            using (var context = new TriviaDBEntities())
            {
                context.Users.AddObject(new User() { UserName = "rahelly", Password = "1245" });
            }


        }
        [TestMethod]
        public void ServiceTest()
        {
            //using (var proxy = new ServiceReference1.GameServiceClient())
            //{
            //    var isInsert = proxy.InsertUser("rahelly", "123");
            //    Assert.IsFalse(!isInsert);
            //}
        }

        [TestMethod]
        public void ImageInsertIntoDBTest()
        {
            //TriviaDal.TriviaDalClass test = new TriviaDal.TriviaDalClass();
            //test.ConvertImageToByteArray();
        }


         
        
    }
}
